package com.ly.emp.bean.dto;

import com.ly.emp.bean.entity.HubTeamIndex;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 指标库维护历史指标库移入-DTO
 *
 * @Author: luoy
 * @Date: 2023-05-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "指标库维护历史指标库移入")
public class HubTeamIndexDTO {

    @NotEmpty(message = "组织编号不能为空")
    @Schema(description = "组织编号")
    private String orgCode;

    /**
     * 历史周期
     */
    @NotEmpty(message = "历史周期不能为空")
    @Schema(description = "历史周期")
    private String periodCode1;

    /**
     * 当前考核周期
     */
    @NotEmpty(message = "当前考核周期不能为空")
    @Schema(description = "当前考核周期")
    private String periodCode;

    /**
     * 指标库维护批量数据
     */
    @NotEmpty(message = "数据不能为空")
    @Schema(description = "指标库维护批量数据")
    private List<HubTeamIndex> datas;
}
